/*
2021年7月24日11:43:52
author：coderwwh
*/


// **********base类，用于混合********************
.center {
  width: 1152px;
  margin: 0 auto;
}

.clearfix {
  display: block;
  zoom: 1;

  &:after {
    content: " ";
    display: block;
    font-size: 0;
    height: 0;
    clear: both;
    visibility: hidden;
  }
}

.db {
  display: block;
}

.dib {
  display: inline-block;
}

.tac {
  text-align: center;
}

//*****************base类，用于混合*******************

// 头部样式
@top-color: #2b2b2b;

.one-nav {
  height: 32px;
  background-color: @top-color;

  .one-navbox {
    color: white;
    font-size: 0.85rem;
    display: flex;

    .left {
      flex-grow: 1;

      ul {
        display: flex;
        height: 32px;
        line-height: 32px;

        li {
          padding: 0 8px;

          a {
            color: white;
          }
        }
      }

      ul li:nth-child(1) {
        padding-left: 0px;
      }
    }

    .right {

      ul {
        display: flex;
        height: 32px;
        line-height: 32px;

        li {
          padding: 0 8px;
        }

        li a {
          color: white;
        }
      }

      ul li:last-child {
        padding-right: 0px;
      }


      .popboard {

        position: relative;

        &:hover {
          .popup {
            display: block;
          }
        }

        .popup {
          width: 160px;
          height: 148px;
          background-color: #fff;
          
          border: 1px solid rgb(38, 204, 168);
          position: absolute;

          //弹出窗口居中写法
          // left: 50%;
          // transform: translateX(-50%);

          right: 0px;
          z-index: 999;


          a {
            color: #111;
          }

          .poptext {
            font-size: 0.8rem;
            padding: 0px 15px;
          }

          .hr {
            width: 80%;
            height: 1px;
            background-color: darkgrey;
            margin: 5px auto;
          }


          display: none;
        }

      }


    }
  }
}


//第二导航
@twocolor: rgb(38, 204, 168);

.two-nav {
  height: 40px;
  background-color: @twocolor;

  .two-navbox {
    ul {
      display: flex;

      li {
        padding: 0 8px;
      }

      a {
        line-height: 40px;
        color: white;
      }
    }

    ul li:nth-child(1) {
      padding-left: 0px;
    }
  }
}

//header main
.headmain {
  height: 78px;

  .mainbox {
    display: flex;

    h1 {
      color: @twocolor;
      font-size: 2rem;
      line-height: 78px;
    }

    .search {

      //不用flex居中方法：
      // position:relative;
      margin-left: 15px;

      display: flex;
      /*Flex布局*/
      display: -webkit-flex;
      /* Safari */
      align-items: center;
      /*指定垂直居中*/

      input {
        float: left;
        width: 361px;
        height: 28px;
        border: 1px solid #20BD9A;
        /* 分别按四个角进行设置 */
        border-radius: 4px 0 0 4px;
        font-size: 14px;
        /* 取消默认的外线（外线是文本框特有的东西） */
        outline: none;
        padding-left: 10px;

        //不用flex居中方法：
        // display: inline-block;
        // position: absolute;
        // top: 50%;
        // transform: translateY(-50%);

      }

      a {
        float: left;
        width: 32px;
        height: 30px;
        background-color: #20BD9A;
        color: white;
        text-align: center;
        line-height: 30px;
        font-size: 18px;
        border-radius: 0 4px 4px 0;

        // position: absolute;
        // top: 50%;
        // transform: translateY(-50%);
      }
    }
  }
}

// banner
.banner {

  width: 100%;
  min-width: 1152px;

  .swiper-container {

    height: 586px;

    --swiper-theme-color: #20BD9A;

    .img {
      width: 100%;
    }
  }
}

//轮播图下面的小图板块
.l-banner {

  .box {
    display: flex;

    .item {
      width: 264px;
      height: 110px;
      margin-right: 32px;
      margin-top: 32px;
      margin-bottom: 32px;
    }
  }
}

//主要板块1
.body-one {
  height: 738px;
  background-color: #F7F7F7;

  .box {

    .title {
      display: flex;
      padding: 45px 0;

      h2 {
        font-size: 2rem;
        padding-right: 20px;
      }

      p {
        display: inline-block;
        margin-top: 18px;
      }
    }

    .body-one-item-box {
      display: flex;
      flex-wrap: wrap;

      .body-one-item {
        width: 264px;
        height: 270px;
        margin-right: 32px;
        margin-bottom: 32px;

        img {
          transition: transform .4s ease 0s;

        }

        img:hover {
          transform: scale(1.1);
        }

        overflow: hidden;

        p {
          display: inline-block;
          background-color: #fff;
          padding: 15px 10px 30px 10px;
          font-size: 0.8rem;
        }
      }

      .body-one-item:hover {
        box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.20);
      }

    }

    .body-one-item-box div:nth-child(4n) {
      margin-right: 0px;

    }
  }
}

//bottom

.bottom {
  background-color: #474443;

  .content {
    .center();
    color: #fff;

    height: 200px;
    // background-color: rgb(189, 255, 244);
    display: flex;

    .left {
      // background-color: lightslategrey;
      padding: 30px;
      padding-left: 0px;
      flex: 1;

      .l-text {
        margin: 20px;
        margin-left: 0px;
      }
    }

    .right {
      // background-color: lightsteelblue;
      padding: 30px;
      padding-right: 0px;
      width: 200px;

      .r-text {
        margin: 20px;
        margin-right: 0px;
      }

      .r-tel {
        .r-text();
        font-size: 1.2rem;

      }
    }
  }
}